package day03;

public class OperDemo {
    public static void main(String[] args) {
       /*  int a=5,b=6;
        System.out.println(a++);
        System.out.println(a);
        System.out.println(++b);
        System.out.println(b);

 int c=4;
 c++;
System.out.println(c);
int d=4;
++d;
System.out.println(d);

/*单独用在前在后一样，被使用在前在后不一样
        a++=a;
        ++b=b+1
        //将a+值
        !! && ||
int q=10,w=7,e=12;
boolean b1=q>=w;
System.out.println(b1); //true
System.out.println(q<e); //true
        System.out.println(w==e); //false
        System.out.println(w++<e); //7.true
        System.out.println(++w<e); //9.true
        System.out.println(--e<7); //11,false
        System.out.println(q%2==0); //true
        // */
int a=45;
System.out.println(a<=100 && a>=0);
int b=102;
System.out.println(b>18 && b<50);
int score=66;
System.out.println(60<score && score<70);

int c=5,d=10,u=5;
System.out.println(b>=a || b<c);
short s=5;
//s=s+10; //编译错误，需要强转，改为 s(short)(s+10)
s+=10;  //相当于（short）(s+10)

int p=5;
a+=10;
System.out.println(a);
a*=2;
System.out.println(a);

String name="杨麻子";
int age=36;
System.out.println("大家好我叫"+name+"今年"+age+"岁了");
String mame="二麻子";
int agge=28;
String suggest="陕西省紫阳县河里";
System.out.println("hello,everyone"+","+"my name is"+mame+agge+"year old ");

//  任何类型的数据与字符串相连，结果都是字符串类型
        System.out.println(10+20+","+30);
        System.out.println(10+","+30);
        System.out.println(","+10+20+40);

int num=0;
int flag=num>1?12:10;
System.out.println(flag);

int m=8,n=5;
int max=m>n?m:n;
System.out.println(max);

int de=12;
int bell=de<max?1:2;
System.out.println(bell);

int dell=250;
int sell=bell!=360?1:2;
System.out.println(sell);

double s60=10.18;
int tomoprry=s60>10.18?1:2;
System.out.println(tomoprry);



    }
}
